package club.justwill.single.bean.Activity;

import club.justwill.single.impl.ToolsImpl;
import club.justwill.single.persistence.jpo.Activity;

/**
 * Created by xiangnan on 16-1-18.
 */
public class ActivityResp {
    private String activityId;
    private String name;
    private String address;
    private String cover;
    private String description;
    private String activityTime;
    private String peopleNum;

    public ActivityResp() {}
    public ActivityResp(Activity activity) {
        setActivityId(activity.getActivityId()+"");
        setName(activity.getName());
        setAddress(activity.getAddress());
        setCover(activity.getCover());
        setDescription(activity.getActivityDescription());
        setActivityTime(ToolsImpl.serializeTimeStamp(activity.getActiTime()));
        setPeopleNum(Integer.toString(activity.getUserActivitySet().size()));
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getActivityTime() {
        return activityTime;
    }

    public void setActivityTime(String activityTime) {
        this.activityTime = activityTime;
    }

    public String getPeopleNum() {
        return peopleNum;
    }

    public void setPeopleNum(String peopleNum) {
        this.peopleNum = peopleNum;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }
}
